package com.cn.zmc.design.chian.disruptor.handle;

import com.cn.zmc.design.chian.domain.Trade;
import com.lmax.disruptor.EventHandler;
import org.springframework.stereotype.Component;

@Component
public class HandlerFourService implements EventHandler<Trade> {

	public void onEvent(Trade event, long sequence, boolean endOfBatch) throws Exception {
		System.err.println("handler 4 : start");
		Thread.sleep(1000);
		event.setPrice(17.0);
		System.err.println("handler 4 : end");
	}

}
